package com.example.wwk.graduationpractice.Bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by wwk on 2017/4/17.
 */

public class QuestionBean implements Parcelable {
    private int QUESTIONID;
    private String PUBLISHER;
    private String PUBLISHTIME;
    private String QUESTIONCONTENT;

    public QuestionBean() {

    }

    public QuestionBean(int questionId, String publisher, String publishTime, String QuestionContent) {
        this.QUESTIONID = questionId;
        this.PUBLISHER = publisher;
        this.PUBLISHTIME = publishTime;
        this.QUESTIONCONTENT = QuestionContent;
    }



    public int getQuestionId() {
        return QUESTIONID;
    }

    public void setQuestionId(int questionId) {
        this.QUESTIONID = questionId;
    }

    public String getName() {
        return PUBLISHER;
    }

    public String getTime() {
        return PUBLISHTIME;
    }

    public String getContent() {
        return QUESTIONCONTENT;
    }

    public void setName(String name) {
        this.PUBLISHER = name;
    }

    public void setTime(String time) {
        this.PUBLISHTIME = time;
    }

    public void setQuestionContent(String content) {
        this.QUESTIONCONTENT = content;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(QUESTIONID);
        parcel.writeString(PUBLISHER);
        parcel.writeString(PUBLISHTIME);
        parcel.writeString(QUESTIONCONTENT);
    }

    protected QuestionBean(Parcel in) {
        QUESTIONID=in.readInt();
        PUBLISHER = in.readString();
        PUBLISHTIME = in.readString();
        QUESTIONCONTENT = in.readString();
    }

    public static final Creator<QuestionBean> CREATOR = new Creator<QuestionBean>() {
        @Override
        public QuestionBean createFromParcel(Parcel in) {
            return new QuestionBean(in);
        }

        @Override
        public QuestionBean[] newArray(int size) {
            return new QuestionBean[size];
        }
    };
}
